package org.wangp.gateway.oa.service;

import org.jetbrains.annotations.NotNull;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;
import org.wangp.gateway.oa.domain.UserDetail;

/**
 * @author wangpeng (๑•ᴗ•๑)
 * @since 2021/10/6 2:28
 */
@Service
public class UserDetailService implements UserDetailsService {

	@Override
	public @NotNull UserDetails loadUserByUsername(@NotNull final String username) throws UsernameNotFoundException {
		return new UserDetail(1L, "1", "1");
	}
}
